import layoutHeaderAside from '@/layout/header-aside'

const meta = { auth: true }

export default {
  path: '/systemManage',
  name: 'systemManage',
  meta,
  redirect: { name: 'systemManage' },
  component: layoutHeaderAside,
  children: (pre => [
    {
      path: 'menuManage',
      name: `${pre}menuManage`,
      component: () => import('@/pages/systemManage/menuManage'),
      meta: { ...meta, title: '菜单管理' }
    },
    {
      path: 'userManage',
      name: `${pre}userManage`,
      component: () => import('@/pages/systemManage/userManage'),
      meta: { ...meta, title: '用户管理' }
    },
    {
      path: 'roleManage',
      name: `${pre}roleManage`,
      component: () => import('@/pages/systemManage/roleManage'),
      meta: { ...meta, title: '角色管理' }
    },
    {
      path: 'roleMenuManage',
      name: `${pre}roleMenuManage`,
      component: () => import('@/pages/systemManage/roleMenuManage'),
      meta: { ...meta, title: '角色菜单管理' }
    },
    {
      path: 'dictionary',
      name: `${pre}dictionary`,
      component: () => import('@/pages/systemManage/dictionary'),
      meta: { ...meta, title: '数据字典' }
    },
    {
      path: 'auditLogs',
      name: `${pre}auditLogs`,
      component: () => import('@/pages/systemManage/auditLogs'),
      meta: { ...meta, title: '审计日志' }
    },
    {
      path: 'tenantManage',
      name: `${pre}tenantManage`,
      component: () => import('@/pages/systemManage/tenantManage'),
      meta: { ...meta, title: '租户管理' }
    }
  ])('systemManage-')
}
